# -*- coding: utf-8 -*-
# @Time    : 2019/12/24 9:05
# @Author  : Damn7Kx
# @Software: PyCharm
import os
import time,datetime

if __name__ == '__main__':

    count = 0
    while True:
        count += 1
        print(datetime.datetime.now(), 'Time_task4第%s次运行爬虫' % count)
        os.system("scrapy crawl Yidian")
        os.system("scrapy crawl Mere")
        os.system("scrapy crawl Wuhu")
        os.system("scrapy crawl Sohu")
        print("Time Task4进入等待时间...")
        time.sleep(180)